import request from '@/utils/request'

export default {
  // 申请记录创建
  createRequest(request1) {
    return request({
      url: `/request/createRequest`,
      method: 'post',
      data: request1
    })
  },
  uploadStudentImage(file) {
    return request({
      url: `/request/uploadStudentImage`,
      method: 'post',
      data: file
    })
  },
  uploadTravelImage(file) {
    return request({
      url: `/request/uploadTravelImage`,
      method: 'post',
      data: file
    })
  },
  findAllRequest() {
    return request({
      url: `/request/findAllRequest`,
      method: 'get'
    })
  }
}
